package cn.hk.vaccination.service.impl;

import cn.hk.vaccination.domain.PlanChrInoculation;
import cn.hk.vaccination.mapper.PlanChrInoculationMapper;
import cn.hk.vaccination.service.PlanChrInoculationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 儿童接种计划管理表 服务实现类
 * </p>
 *
 * @author xu
 * @since 2023-03-10
 */
@Service
public class PlanChrInoculationServiceImpl extends ServiceImpl<PlanChrInoculationMapper, PlanChrInoculation> implements PlanChrInoculationService {

    @Autowired
    private PlanChrInoculationMapper planChrInoculationMapper;

    @Override
    public PlanChrInoculation getPlanChrInoculation(Long pid, Double monthValue) {
        return planChrInoculationMapper.selectOneByPid(pid);
    }

    @Override
    public List<PlanChrInoculation> getList() {
        return planChrInoculationMapper.selectChrInoculationList();
    }
}
